package cn.lanqiao.system.service.impl;

import cn.lanqiao.common.entity.Admin;
import cn.lanqiao.system.mapper.AdminMapper;
import cn.lanqiao.system.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Service
@Repository
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper ;

    @Override
    public Admin login(String username, String password) {
        return adminMapper.login(username, password);
    }
}
